package com.eight.common.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

@Data
@ApiModel(value = "shoucangteacher对象",description = "收藏教师表")
@TableName("tb_shoucang_teacher")
@EqualsAndHashCode(callSuper = false)
public class TbShoucangTeacher implements Serializable {

    /**
    *
    */
    @NotBlank(message="[]不能为空")
    @Size(max= 50,message="编码长度不能超过50")
    @ApiModelProperty("")
    @Length(max= 50,message="编码长度不能超过50")
    private String id;
    /**
    * 会员id
    */
    @NotBlank(message="[会员id]不能为空")
    @Size(max= 225,message="编码长度不能超过225")
    @ApiModelProperty("会员id")
    @Length(max= 225,message="编码长度不能超过225")
    @TableId
    private String memberId;
    /**
    * 教师id
    */
    @NotBlank(message="[教师id]不能为空")
    @Size(max= 225,message="编码长度不能超过225")
    @ApiModelProperty("教师id")
    @Length(max= 225,message="编码长度不能超过225")
    private String teacherId;

    private  EduTeacher eduTeacher;
}
